import request from '@/utils/request'

// 查询费用支出列表
export function listCostExpenditure(query) {
  return request({
    url: '/system/costExpenditure/list',
    method: 'get',
    params: query
  })
}

// 查询费用支出详细
export function getCostExpenditure(id) {
  return request({
    url: '/system/costExpenditure/' + id,
    method: 'get'
  })
}

// 新增费用支出
export function addCostExpenditure(data) {
  return request({
    url: '/system/costExpenditure',
    method: 'post',
    data: data
  })
}

// 修改费用支出
export function updateCostExpenditure(data) {
  return request({
    url: '/system/costExpenditure',
    method: 'put',
    data: data
  })
}

// 删除费用支出
export function delCostExpenditure(id) {
  return request({
    url: '/system/costExpenditure/' + id,
    method: 'delete'
  })
}
